package com.tledu.zyf.test;

import java.lang.reflect.Field;
import java.util.ArrayList;

//@Description(name = "xx")
@Description(name = "xx", age = 2, method = "")
public class A {
	public static char b;

	public static void main(String[] args) throws Exception {
		m1();
		ArrayList<String> ss = new ArrayList<String>();
		ss.add("asd");

		System.out.println(ss.size());
		Class c = ss.getClass();
		Field f = c.getDeclaredField("elementData");
		f.setAccessible(true);
		Object[] os = (Object[]) f.get(ss);
		os[1] = 1.2;

		Field f1 = c.getDeclaredField("size");
		f1.setAccessible(true);
		f1.set(ss, 3);

		System.out.println(ss);
		System.out.println(b);
	}

	@Deprecated
	public static void m1() {

	}
}
